package com.java1412.dao;

import com.java1412.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author java1412
 * @create 2021-05-13 14:31
 */
public interface StudentMapper {
    /**
     * 以注解的方式实现ssm整合
     */
    @Select("SELECT * FROM student")
    List<Student> getAll();

    @Select("SELECT * FROM student where id=#{id}")
    Student getById(@Param("id") int id);
}
